Skip to content

fix(parser): recognize complete PDF table tags - #5

Closed
Harsh23Kashyap wants to merge 568 commits into
mainfrom
fix/cycle77-pdf-parsers-table-mislabel
Closed

Harsh23Kashyap wants to merge 568 commits into
mainfrom
fix/cycle77-pdf-parsers-table-mislabel

Conversation

@Harsh23Kashyap

Copy link
Copy Markdown
Owner

Recognize complete PDF table tags case-insensitively and add regression coverage. A standalone Go regex harness passed six cases twice; gofmt and whitespace checks passed. Full parser tests could not compile because office_oxide.h is missing.

dcc123456 and others added 30 commits September 17, 2026 19:25
### Summary

Fix citation of agentic rag
…ons (infiniflow#19800)

Fix DeepDoc OOM — disabled ONNX CPU memory arena in both session paths so idle sessions don't hoard native memory. Peak RSS on a 260-page PDF: ~20 GB (OOM) → ~8 GB.
…nfiniflow#19748)

Add Cheaper Inference as OpenAI-compatible provider
---------
Signed-off-by: aiapienthusiast <aiapienthusiast@users.noreply.github.com>
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
### Summary

Refine citation for coverage queries
…a chunker, and a chunker cannot be followed by another chunker. (infiniflow#19833)
cike8899 and others added 28 commits September 23, 2026 19:39
### Summary

Adds an Azerbaijani (az) translation.

New file web/src/locales/az.ts: 3181 strings, all filled in.
web/src/constants/common.ts: added Az to LanguageAbbreviation and
Azərbaycanca to LanguageAbbreviationMap.
web/src/locales/config.ts: added az to languageImports.

Co-authored-by: Jamal Kamaladdin <jamalkamaladdin@users.noreply.github.com>
Resolve the latest release through GitHub’s `releases/latest` redirect
instead of the rate-limited REST API. Explicitly specified versions
continue to work as before.
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
…iflow#20158)

Support rerrank for searchbot; add highlight for searchbot.
…kup (infiniflow#20143)

The three PDF parsers (OpenDataLoader, TCADP, SoMark) hand every
`type=="table"` block back with `doc_type_kwd: "table"` and
`layout: "table"` even when the text payload is concatenated
cell/row bytes rather than real HTML markup. The QA chunker then
walks the markup looking for rows, finds none, and silently returns
zero QA pairs — a successful parse that produced nothing.

Introduce `pdfTextCarriesTableMarkup` (looks for `<table` or
`<tr`) and `pdfDowngradeLabelIfNoTableMarkup` (rewrites an item
from `("table", "table")` to `("text", "text")` when the
markup is absent, no-op otherwise). Apply the helper at the three
`type=="table"` emission sites so the producer-side label now
matches the actual payload the consumer will see.

Mirrors the consumer-side walker PR infiniflow#20080 added, but at the
producer so the label is truthful end-to-end.
Helper-level: TestPDFTextCarriesTableMarkup pins the markup-presence
predicate against seven inputs (empty, plain text, full HTML,
row-tag-only, uppercase tag, attributes, trailing whitespace) and
TestPDFDowngradeLabelIfNoTableMarkup pins the per-item rewrite
through five shapes (with markup / no markup / non-table / image
/ nil).

Parser-level: each of the three parsers gets two cases — the
downgrade path (cells / row-concatenated / content fallback, all
without markup, all expected to come back labelled `text`) and
the positive path (real `<table>` markup, expected to come back
labelled `table`). Together they pin the producer-side fix for
issue infiniflow#20143 and prevent the three parsers from drifting apart
on this label again.
@Harsh23Kashyap

Copy link
Copy Markdown
Owner Author

duplicate - these commits are already the head of upstream PR infiniflow#20181; closing the fork-side PR. branch stays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.